﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.Domain.Data
{
    public class TaskSummary
    {
        public int Total { get; set; }

        public int Timer { get; set; }
        public int Alarm { get; set; }
        public int Manual { get; set; }
        public int Event { get; set; }

        public List<TaskExecuteRecord> Tasks { get; set; }

        public class TaskExecuteRecord
        {
            public Guid Id { get; set; }
            public string Name { get; set; }
            public Nullable<Guid> BatchId { get; set; }
            public Nullable<DateTime> ExecutedTime { get; set; }
            public int RunMode { get; set; }
            public Nullable<long> DataCount { get; set; }
            public Nullable<long> InsertSuccessCount { get; set; }
        }
    }
}
